import {Inject, Injectable} from '@angular/core';
import {SbMap} from '../bean/SbMap';
import {SB_MAP_OPTION_INTERCEPTOR, DcMapOptions} from '../entity/dc-map-options';

@Injectable()
export class MapService {

    constructor(@Inject(SB_MAP_OPTION_INTERCEPTOR)
                private sbMapOptions: DcMapOptions) {
    }

    createDefaultMap() {
        return new SbMap(this.sbMapOptions);
    }
}
